// 引入React
import React from 'react';
// 引入ReactDOM
import ReactDOM from 'react-dom/client';
// 引入router
import { RouterProvider } from 'react-router-dom';
import router from '../src/router';
//store
import { Provider } from 'react-redux';
import store from './store';
// 引入样式
import './styles/index.scss';
import 'nprogress/nprogress.css';
// 国际化
import zhCN from 'antd/locale/zh_CN';
import { ConfigProvider } from 'antd';
// 创建一个根节点
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
// 渲染App根组件
root.render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <RouterProvider router={router}></RouterProvider>
    </Provider>
  </ConfigProvider>,
);

